package com.jboom.templates.converter;
import java.util.Date;
import com.jboom.templates.converter.Extend;
import com.jboom.templates.converter.AccountVO;

/**
 * @author zhangwen
 * @date 2023/5/28 19:54
 */
public class Test {

    public static void main(String[] args) {
        UserVO userVO = new UserVO();
        userVO.setUserId("1");
        userVO.setUsername("2");
        userVO.setBirthday(new Date());
        Extend extend = new Extend();
        extend.setA("a");
        extend.setB("b");
        extend.setC("c");
        extend.setD("d");
        userVO.setExtend(extend);
        AccountVO account = new AccountVO();
        account.setAccountNo("1111");
        account.setAmount("1000");
        userVO.setAccount(account);
        UserDTO dto = BaseConverter.INSTANCE.toDTO(userVO);
        System.out.println(dto);
    }
}
